<?php
	$start = $_POST['start'];
	$end = $_POST['end'];
	//$start = "2014-09-22";
	//$end = "2014-09-23";
	$url= "http://eservices.mwa.co.th/gps/uploads/jobgis.php?&start=".$start."&end=".$end;
	try {
		error_reporting(0);	
		//header('Content-Type: text/plain');
		$page = file_get_contents("http://172.16.195.26/ajaxservice/api/data/?url=".$url);
                echo $page;
	} 
	catch (Exception $e) {
		echo ("Error" . " " . $e);
	}
?>